<?php if(!empty($post)):?>
<div class="post_detail">
	<div class="p-top-info clearfix">    
		<div class="p-user-info">         
			<div class="p-user-img">          
				<img src="<?php echo $post['photo']?>" />          
			</div>         
			<div class="p-user-desc">          
				<div class="p-user-name"><?php echo $post['fullname']?></div>         
				<div class="p-share-time">于<span><?php echo $post['created']?></span>分享</div>      
			</div>   
		</div>
		<div class="p-t-handle">         
			<a class="left post_wish" href="javascript:void(0)" data-id="<?php echo $post['id']?>">
	           <span class="wish icon icon-wish"></span><span class="text"><?php echo $post['wish']?></span>
	        </a>
	        <a class="right interact" href="javascript:void(0)" t="praiseup" data-id="<?php echo $post['id']?>">
		        <span class="up icon icon-up"></span><span class="text"><?php echo $post['praiseup']?></span>
		    </a>
	    </div>
	</div>
	<div class="post_imgs">
		<?php 
			$image_list = explode(";", $post['images']);
			foreach($image_list as $img){
				if(!empty($img)){
					echo "<p><img src='/temp/post/post".$post['id']."-M-".$img."' /></p>";
				}
			}
		?>
	</div>
	<div class="post_note">
		<div>
			<?php echo $post['description'];?>
		</div>
		<div class="post_tags">
			<?php if(!empty($post['tags'])):?>
			标签:
			<?php 
				$tags_list = explode(" ", $post['tags']);
			?>
			<?php foreach($tags_list as $tag):?>
			<?php if(!empty($tag)):?>
				<a href='/search?keyword=<?php echo $tag?>'><?php echo $tag?></a>
			<?php endif;?>
			<?php endforeach;?>
			<?php endif;?>
		</div>
	</div>
	<div class="post_review">
		<div class="post_review_info">
			<div rows="3" class="contenteditable review_content post_review_content" placeholder="Write a Comment" contenteditable="true"></div>
			<div class="error_msg" style="clear:both;display:none"> 
				<p>Please input the content</p>
			</div>
			<div class="post_review_btn clearfix">
				<span class="emoji emoji_select left"></span>
				<input class="review_submit right" type="button" data-id="<?php echo $post['id']?>" value="评论" />
			</div>
			<div class="emoji_list" style="clear:both;display:none"></div>
		</div>
		<div class="post_review_box">
			<div class="post_review_lists">
				<?php if(!empty($post_review['list'])):?>
				<?php foreach($post_review['list'] as $rkey=>$review):?>
				<div class="post_review_list" id="post_review_list_<?php echo $review['id']?>">
					<div class="clearfix">
						<div class="img">
							<img src="<?php echo $review['photo']?>">
						</div>
						<div class="info">
							<div>
								<a href="/u/<?php echo $review['fullname']?>" class="user"><?php echo $review['fullname']?></a>
								<span class="time"><?php echo $review['time']?></span>
								<a href="javascript:void(0)" class="reply ajax_reply" data-id="<?php echo $review['id']?>" data-parent="<?php echo $review['id']?>">回复</a>
								<span class="ajax_loading hide"></span>
							</div>
							<p>
								<?php echo $review['content'];?>
							</p>
							<div style="display:none" class="post_review_reply" id="post_review_reply_<?php echo $review['id']?>">
								<div rows="3" class="contenteditable reply_content" placeholder="Write a Comment" contenteditable="true"></div>
								<div class="error_msg" style="clear:both;display:none"> 
									<p>Please input the content</p>
								</div>
								<div class="post_review_btn clearfix">
									<span class="emoji emoji_select left"></span>
									<input class="review_reply_submit right" type="button" data-id="<?php echo $post['id']?>" review-id="<?php echo $review['id']?>" value="评论" />
								</div>
								<div class="emoji_list" style="clear:both;display:none"></div>
							</div>
							<div class="reply_lists">
							</div>
						</div>
					</div>
				</div>
				<?php endforeach;?>
				<?php endif;?>
			</div>
		</div>
	</div>
</div>
<input type="hidden" id="post_detail_id" value="<?php echo $post['id']?>" />
<?php endif;?>
